Brightness

Adjusts the brightness and contrast of a imaG image.

Syntax: imaG.Brightness brightness , contrast
brightness (integer) The factor by which to increase or decrease the brightness of the image; use 0 to turn the image black, 100 to turn the image white, 50 to cause no change, and so on
contrast (integer) OPTIONAL : The factor by which to increase or decrease the contrast of the image; use 0 for no contrast, 100 for maximum, 50 to cause no change, and so on.

If the imaG contains a palettized image, then the palette is adjusted.

If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.

See also Contrast , Gamma , Filter , GrayScale